<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2017/3/17
  Time: 14:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Test</title>
    <%--<meta charset=""--%>
</head>
<body>

登录测试<br>
<form action="${pageContext.request.contextPath}/student/login" method="post">
    user<label>
    <input value="" name="telphone" type="text">
</label>
    password<label>
    <input value="" name="password" type="password">
</label>
    <input type="submit" value="submit">
</form>

注册测试<br>
<form action="${pageContext.request.contextPath}/student/register" method="post">
    user<label>
    <input value="" name="username" type="text">
</label>
    tel<label>
    <input value="" name="telphone" type="text">
</label>
    password<label>
    <input value="" name="password" type="password">
</label>
    <input type="submit" value="submit">
</form>

<form action="${pageContext.request.contextPath}/student/updateInfo?telphone=182" method="post">
    username<label>
    <input name="username" type="text">
</label>
    password<label>
    <input name="password" type="password">
</label>
    <input value="submit" type="submit">
</form>


<form action="${pageContext.request.contextPath}/student/up" method="post" enctype="multipart/form-data">
    文件<input type="file" name="file">
    电话 <input type="tel" name="telphone">
    <input type="submit" value="登录">
</form>


<br>

<p>HomeWork 测试</p>
<p>添加</p>

<form action="${pageContext.request.contextPath}/homework/add" method="post" enctype="multipart/form-data">
    标题:<input type="text" name="name">
    内容:<input type="text" name="content">
    file:<input name="files" type="file">
    file:<input name="files" type="file">
    <input type="submit" value="上传">
</form>


<p>删除</p>
<form action="${pageContext.request.contextPath}/homework/delete">
    编号 <input type="text" name="id">
    <input type="submit" value="删除">
</form>

<p>获取所有作业</p>
<a href="${pageContext.request.contextPath}/homework/list">查询</a>

<p>指定ID查询</p>
<form action="${pageContext.request.contextPath}/homework/select_id">
    ids:<input type="text" name="ids">
    <input type="submit">
</form>

<p>指定类型查询</p>
<form action="${pageContext.request.contextPath}/homework/select_type">
    type: <input type="text" name="type">
    <input type="submit" value="提交">
</form>

<p>更新作业</p>
<form action="${pageContext.request.contextPath}/homework/update_homework">
    name5
</form>
</body>
</html>
